package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbCustomerOrderValidatorGroup.*;

import javax.validation.constraints.Size;
import java.lang.Double;
import com.cloudlead.common.lang.annotation.BelongsTos;
import org.joda.time.DateTime;
import com.cloudlead.commonData.vo.Region;
import javax.validation.constraints.NotNull;
import com.cloudlead.commonData.vo.BaseShipRoutePrice;
import com.cloudlead.commonData.vo.TbPlacePrice;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.commonData.vo.BaseVoyage;
import java.lang.String;
import com.cloudlead.commonData.vo.BaseCompany;

/**
 * TbCustomerOrder is a Codegen vo type
 */
@Label("TbCustomerOrder")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbCustomerOrder")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseCompany", rootField="baseCompanyId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseVoya", rootField="baseVoyage")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="belongForward", rootField="belongForwarder")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="delCarPrice", rootField="delCarPriceId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="destCompany", rootField="destCompanyId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="fDo", rootField="fDoor")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="forwarderPrice", rootField="forwarderPriceId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="polCarPrice", rootField="polCarPriceId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="sDo", rootField="sDoor")
})
public class TbCustomerOrder extends AbstractIdEntity<String> {

    private static final long serialVersionUID =26109292222540L;    
    @Label("起始港船东")
    private BaseCompany baseCompany;

    @Label("航次")
    private BaseVoyage baseVoya;

    @Label("belongCompany")
    @Size(max=500)
    private String belongCompany;

    @Label("供应货代")
    private BaseCompany belongForward;

    @Label("业务号")
    @Size(max=45)
    private String bussinessCode;

    @Label("备注")
    @Size(max=2000)
    private String comments;

    @Label("货物名称")
    @Size(max=45)
    private String commodity;

    @Label("收货人联系方式")
    @Size(max=45)
    private String consignee;

    @Label("收货人姓名")
    @Size(max=45)
    private String consigneeName;

    @Label("delCarPriceId")
    private TbPlacePrice delCarPrice;

    @Label("目的港")
    @Size(max=255)
    private String delName;

    @Label("delOrderState")
    @Size(max=100)
    private String delOrderState;

    @Label("目的港船东")
    private BaseCompany destCompany;

    @Label("fDoor")
    private Region fDo;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @Label("forwarderPriceId")
    private BaseShipRoutePrice forwarderPrice;

    @Label("fTime")
    private DateTime fTime;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("代办保险")
    @Size(max=45)
    private String insuranceAgent;

    @Label("下单时间")
    private DateTime ordertime;

    @Label("下单人")
    @Size(max=24)
    private String orderUser;

    @Label("polCarPriceId")
    private TbPlacePrice polCarPrice;

    @Label("起运港")
    @Size(max=255)
    private String polName;

    @Label("polOrderState")
    @Size(max=100)
    private String polOrderState;

    @Label("项目")
    @Size(max=45)
    private String project;

    @Label("箱量")
    @Size(max=50)
    private String quantity;

    @Label("冷藏温度")
    @Size(max=45)
    private String refrigeratingTemperature;

    @Label("sDoor")
    private Region sDo;

    @Label("发货人联系方式")
    @Size(max=45)
    private String shipper;

    @Label("发货人姓名")
    @Size(max=45)
    private String shipperName;

    @Label("sTime")
    private DateTime sTime;

    @Label("totalForwarderPrice")
    private Double totalForwarderPrice;

    @Label("总运价")
    private Double totalPrice;

    @Label("通风开口")
    @Size(max=45)
    private String ventilation;

    public BaseCompany getBaseCompany() {
        return baseCompany;
    }

    public void setBaseCompany(BaseCompany baseCompany) {
        this.baseCompany = baseCompany;
    }

    public BaseVoyage getBaseVoya() {
        return baseVoya;
    }

    public void setBaseVoya(BaseVoyage baseVoya) {
        this.baseVoya = baseVoya;
    }

    public String getBelongCompany() {
        return belongCompany;
    }

    public void setBelongCompany(String belongCompany) {
        this.belongCompany = belongCompany;
    }

    public BaseCompany getBelongForward() {
        return belongForward;
    }

    public void setBelongForward(BaseCompany belongForward) {
        this.belongForward = belongForward;
    }

    public String getBussinessCode() {
        return bussinessCode;
    }

    public void setBussinessCode(String bussinessCode) {
        this.bussinessCode = bussinessCode;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getCommodity() {
        return commodity;
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public TbPlacePrice getDelCarPrice() {
        return delCarPrice;
    }

    public void setDelCarPrice(TbPlacePrice delCarPrice) {
        this.delCarPrice = delCarPrice;
    }

    public String getDelName() {
        return delName;
    }

    public void setDelName(String delName) {
        this.delName = delName;
    }

    public String getDelOrderState() {
        return delOrderState;
    }

    public void setDelOrderState(String delOrderState) {
        this.delOrderState = delOrderState;
    }

    public BaseCompany getDestCompany() {
        return destCompany;
    }

    public void setDestCompany(BaseCompany destCompany) {
        this.destCompany = destCompany;
    }

    public Region getfDo() {
        return fDo;
    }

    public void setfDo(Region fDo) {
        this.fDo = fDo;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public BaseShipRoutePrice getForwarderPrice() {
        return forwarderPrice;
    }

    public void setForwarderPrice(BaseShipRoutePrice forwarderPrice) {
        this.forwarderPrice = forwarderPrice;
    }

    public DateTime getfTime() {
        return fTime;
    }

    public void setfTime(DateTime fTime) {
        this.fTime = fTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInsuranceAgent() {
        return insuranceAgent;
    }

    public void setInsuranceAgent(String insuranceAgent) {
        this.insuranceAgent = insuranceAgent;
    }

    public DateTime getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(DateTime ordertime) {
        this.ordertime = ordertime;
    }

    public String getOrderUser() {
        return orderUser;
    }

    public void setOrderUser(String orderUser) {
        this.orderUser = orderUser;
    }

    public TbPlacePrice getPolCarPrice() {
        return polCarPrice;
    }

    public void setPolCarPrice(TbPlacePrice polCarPrice) {
        this.polCarPrice = polCarPrice;
    }

    public String getPolName() {
        return polName;
    }

    public void setPolName(String polName) {
        this.polName = polName;
    }

    public String getPolOrderState() {
        return polOrderState;
    }

    public void setPolOrderState(String polOrderState) {
        this.polOrderState = polOrderState;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getRefrigeratingTemperature() {
        return refrigeratingTemperature;
    }

    public void setRefrigeratingTemperature(String refrigeratingTemperature) {
        this.refrigeratingTemperature = refrigeratingTemperature;
    }

    public Region getsDo() {
        return sDo;
    }

    public void setsDo(Region sDo) {
        this.sDo = sDo;
    }

    public String getShipper() {
        return shipper;
    }

    public void setShipper(String shipper) {
        this.shipper = shipper;
    }

    public String getShipperName() {
        return shipperName;
    }

    public void setShipperName(String shipperName) {
        this.shipperName = shipperName;
    }

    public DateTime getsTime() {
        return sTime;
    }

    public void setsTime(DateTime sTime) {
        this.sTime = sTime;
    }

    public Double getTotalForwarderPrice() {
        return totalForwarderPrice;
    }

    public void setTotalForwarderPrice(Double totalForwarderPrice) {
        this.totalForwarderPrice = totalForwarderPrice;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getVentilation() {
        return ventilation;
    }

    public void setVentilation(String ventilation) {
        this.ventilation = ventilation;
    }

    public String toString() {
         return String.format("TbCustomerOrder { baseCompany : %s,baseVoya : %s,belongCompany : %s,belongForward : %s,bussinessCode : %s,comments : %s,commodity : %s,consignee : %s,consigneeName : %s,delCarPrice : %s,delName : %s,delOrderState : %s,destCompany : %s,fDo : %s,flag : %s,forwarderPrice : %s,fTime : %s,id : %s,insuranceAgent : %s,ordertime : %s,orderUser : %s,polCarPrice : %s,polName : %s,polOrderState : %s,project : %s,quantity : %s,refrigeratingTemperature : %s,sDo : %s,shipper : %s,shipperName : %s,sTime : %s,totalForwarderPrice : %s,totalPrice : %s,ventilation : %s }",baseCompany,baseVoya,belongCompany,belongForward,bussinessCode,comments,commodity,consignee,consigneeName,delCarPrice,delName,delOrderState,destCompany,fDo,flag,forwarderPrice,fTime,id,insuranceAgent,ordertime,orderUser,polCarPrice,polName,polOrderState,project,quantity,refrigeratingTemperature,sDo,shipper,shipperName,sTime,totalForwarderPrice,totalPrice,ventilation);
    }

}

